﻿using Basic.FlowGatewayModule.Model;
using Basic.FlowRemoteModel;
using Basic.FlowRemoteModel.FlowApp.Model;
using WeDonekRpc.Client;
using WeDonekRpc.HttpApiGateway.Model;

namespace Basic.FlowGatewayModule.Interface
{
    public interface IFlowAppService
    {
        bool SetSettleFormId ( long id, long? formId );
        long Add ( FlowAppSet data );
        bool Enable ( long id );
        FlowAppBase Get ( long id );
        bool Set ( long id, FlowAppSet set );
        PagingResult<FlowAppData> Query ( PagingParam<FlowAppQuery> param );
        bool SetFlow ( long id, AppFlowSet set );
        bool Stop ( long id );
        FlowApp[] GetList ( FlowAppType? appType );
        void Delete(long id);
    }
}